package com.obas.type;

import com.ease.common.enums.EnumUtil;
import com.ease.common.enums.OptionalEnum;

public enum AlignmentType implements OptionalEnum {

	Left((short) 1, "左端对齐"), //

	Right((short) 2, "右端对齐"), //

	Top((short) 3, "顶端对齐"), //

	Bottom((short) 4, "低端对齐"), //

	Center((short) 5, "中间对齐"); //

	private short value;

	private String text;

	private AlignmentType(short value, String text) {
		this.value = value;
		this.text = text;
	}

	public static AlignmentType get(short value) {
		return EnumUtil.get(AlignmentType.class, value);
	}

	public static AlignmentType get(String name) {
		return EnumUtil.get(AlignmentType.class, name);
	}

	public String getText() {
		return text;
	}

	public String getName() {
		return name();
	}

	public short getValue() {
		return value;
	}

}
